package com.flower.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 订单项表
 * @TableName order_item
 */
@TableName(value ="order_item")
@Data
public class OrderItem implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer orderItemId;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 商品ID
     */
    private Integer productId;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 商品图片
     */
    private String productImage;

    /**
     * 规格
     */
    private String specification;

    /**
     * 单价
     */
    private Integer price;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 小计金额
     */
    private Integer subtotal;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}